package com.cmy.webCore.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author:Cmy
 * @Date:2023-11-07 15:46
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageQuery {

    /**
     * 当前页码
     * @mock 1
     * @since v1.0.0
     **/
    @NotNull(message = "CURRENT_PAGE_CANNOT_BE_EMPTY")
    private Integer curPage=1;

    /**
     * 页面大小
     * @mock 10
     * @since v1.0.0
     **/
    @NotNull(message = "PAGE_SIZE_CANNOT_BE_EMPTY")
    private Integer pageSize=10;

}

    